
function search_people() {
	init_form();
	document.forms['SearchForm'].submit();
}

function search_org() {
	document.forms['org_search_form'].submit();	
}

function init_form() {
	document.forms['SearchForm'].search_field_num1.value = document.getElementById('search_field_num1_entry').value;
	document.forms['SearchForm'].search_value_num1.value = document.getElementById('search_value_num1_entry').value;

	document.forms['SearchForm'].search_field_num2.value = document.getElementById('search_field_num2_entry').value;
	document.forms['SearchForm'].search_value_num2.value = document.getElementById('search_value_num2_entry').value;

	document.forms['SearchForm'].search_field_num3.value = document.getElementById('search_field_num3_entry').value;
	document.forms['SearchForm'].search_value_num3.value = document.getElementById('search_value_num3_entry').value;
}

function switch_tabs(tab_num) {
	if (tab_num == 1) {
		document.getElementById('tab1').style.display = 'block';
		document.getElementById('tab2').style.display = 'none';
		document.getElementById('tabEl1').className = "selected_tab";
		document.getElementById('tabEl2').className = "";
	}
	else {
		document.getElementById('tab1').style.display = 'none';
		document.getElementById('tab2').style.display = 'block';
		document.getElementById('tabEl1').className = "";
		document.getElementById('tabEl2').className = "selected_tab";
	}	
}
